package net.tngou.iask.action;

import java.io.IOException;
import java.util.Enumeration;
import java.util.Map;
import java.util.Set;

import javax.servlet.ServletException;

public class FormAction extends BaseAction {

	@Override
	public void execute() throws ServletException, IOException {
		Map<String, ? extends Object> map = request.getParameterMap();	
		Set<String> keys = map.keySet();
		for (String string : keys) {
			System.err.print(string+":");
			String[] values = request.getParameterValues(string);
			for (String value : values) {
				System.out.print(value+" ");
			}
			System.err.println("********");
		}
		
		Enumeration<String> sts = request.getParameterNames();
		while (sts.hasMoreElements()) {
			String s = sts.nextElement();
			System.err.println(s);
        }
		
	}
}
